package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_sly_sls database table.
 * 
 */
@Entity
@Table(name="per_sly_sls")
@NamedQuery(name="PerSlySls.findAll", query="SELECT p FROM PerSlySls p")
public class PerSlySls implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_SLS_SLSID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_SLS_SLSID_GENERATOR")
	private int slsid;

	private String slsrem;

	private int slsstat;

	private String slstime;

	private String slszt;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp1;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="PER_EMPID")
	private PerPmsEmp perPmsEmp2;

	//bi-directional many-to-one association to PerSlySet
	@ManyToOne
	@JoinColumn(name="SETID")
	private PerSlySet perSlySet;

	//bi-directional many-to-one association to PerSlyWags
	@OneToMany(mappedBy="perSlySl")
	private List<PerSlyWags> perSlyWags;

	public PerSlySls() {
	}

	public int getSlsid() {
		return this.slsid;
	}

	public void setSlsid(int slsid) {
		this.slsid = slsid;
	}

	public String getSlsrem() {
		return this.slsrem;
	}

	public void setSlsrem(String slsrem) {
		this.slsrem = slsrem;
	}

	public int getSlsstat() {
		return this.slsstat;
	}

	public void setSlsstat(int slsstat) {
		this.slsstat = slsstat;
	}

	public String getSlstime() {
		return this.slstime;
	}

	public void setSlstime(String slstime) {
		this.slstime = slstime;
	}

	public String getSlszt() {
		return this.slszt;
	}

	public void setSlszt(String slszt) {
		this.slszt = slszt;
	}

	public PerPmsEmp getPerPmsEmp1() {
		return this.perPmsEmp1;
	}

	public void setPerPmsEmp1(PerPmsEmp perPmsEmp1) {
		this.perPmsEmp1 = perPmsEmp1;
	}

	public PerPmsEmp getPerPmsEmp2() {
		return this.perPmsEmp2;
	}

	public void setPerPmsEmp2(PerPmsEmp perPmsEmp2) {
		this.perPmsEmp2 = perPmsEmp2;
	}

	public PerSlySet getPerSlySet() {
		return this.perSlySet;
	}

	public void setPerSlySet(PerSlySet perSlySet) {
		this.perSlySet = perSlySet;
	}

	public List<PerSlyWags> getPerSlyWags() {
		return this.perSlyWags;
	}

	public void setPerSlyWags(List<PerSlyWags> perSlyWags) {
		this.perSlyWags = perSlyWags;
	}

	public PerSlyWags addPerSlyWag(PerSlyWags perSlyWag) {
		getPerSlyWags().add(perSlyWag);
		perSlyWag.setPerSlySl(this);

		return perSlyWag;
	}

	public PerSlyWags removePerSlyWag(PerSlyWags perSlyWag) {
		getPerSlyWags().remove(perSlyWag);
		perSlyWag.setPerSlySl(null);

		return perSlyWag;
	}

}